home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / grafik / 3d & render tools / irit / man / man6 / coord.6 < prev    next >
Text File  |  1996-07-16  |  1KB  |  36 lines

  1. .TH COORD
  2.  6 "IRIT Version 6.0" 
  3. .SH NAME
  4. COORD
  5.  
  6.  
  7.  
  8.  AnyType COORD( AnyType Object, NumericType Index )
  9.  
  10. Extracts an element from a given Object, at index Index. From
  11. a PointType, VectorType, PlaneType, CtlPtType and MatrixType, a NumericType
  12. is returned with Index 0 for the X axis, 1 for the Y axis etc.
  13. Index 0 denotes the weight of CtlPtType. For a PolygonType that
  14. contains more than one polygon, the Indexth polygon is returned. For
  15. a PolygonType that contains a single Polygon, the Indexth vertex is
  16. returned. For a CurveType or a SurfaceType, the Indexth CtlPtType is
  17. returned. For a ListType, COORD behaves like NTH and returns the Indexth
  18. object in the list. For a StringType, the Indexth character is returned
  19. as its ASCII numeric code.
  20.  
  21. Example:
  22.  
  23.     a = vector( 1, 2, 3 );
  24.     vector( COORD( a, 0 ), COORD( a, 1 ), COORD( a, 2 ) );
  25.  
  26.     a = ctlpt( P2, 6, 7, 8, 9 );
  27.     ctlpt( P3, coord( a, 0 ), coord( a, 1 ), coord( a, 2 ), coord( a, 3 ) );
  28.  
  29.     a = plane( 10, 11, 12, 13 );
  30.     plane( COORD( a, 0 ), COORD( a, 1 ), COORD( a, 2 ), COORD( a, 3 ) );
  31.  
  32. constructs a vector/ctlpt/plane and reconstructs it by extracting the
  33. constructed scalar components of the objects using COORD.
  34.  
  35. See also COERCE.
  36.